const express = require('express')
const app = express()

// 导入解析表单数据的中间件
const parser = require('body-parser')
// 注册
app.use(parser.urlencoded({extended:false}))

app.post('/', (req, res) => {
  console.log(req.body);
  res.send('Home Page')
})

app.listen(80, () => {
  console.log('express server created  running at http://127.0.0.1');
})